package com._54programer.ws.handler;

import org.springframework.stereotype.Service;

import com._54programer.ws.Const;
import com._54programer.ws.NSend;
import com._54programer.ws.RepConst;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import io.netty.channel.Channel;

@Service(Const.ALL_SERVICE)
public class NoticeHandler {
	
	public void execute(Channel channel,JSONObject data) {
		
		RepConst rep = new RepConst();
		rep.setRepCode(Const.BIND_GROUP_REP_CODE);
		rep.setRepStatus(Const.SUCCESS);
		rep.setRepMessge(Const.SUCCESS_MSG);
		JSONObject data1 = new JSONObject();
		data1.put("msg", "用户【"+data.getString("userName")+"】绑定房间【"+data.getString("groupId")+"】成功");
		rep.setRepData(data1);
		
		//new Result().OKbyAll(JSON.toJSONString(rep));
	}
}
